package com.cjjd.c.feature.subscribe.nomal_hotel;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.cjjd.c.base.recycler.RecyclerAdapter;
import com.cjjd.c.base.recycler.ViewHolder;
import com.cjjd.c.feature.subscribe.info.HotelDetailActivity;

import java.util.List;

/**
 * ----------------------------------
 * Created by xyd on 2017/11/23.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class HotelNomalItemAdapter<T> extends RecyclerAdapter {
    public HotelNomalItemAdapter(Context context, List dataList, int layoutId) {
        super(context, dataList, layoutId);
    }

    @Override
    public void convert(ViewHolder holder, Object itemData, int position) {

        holder.setOnItemClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent intent = new Intent(mContext, HotelDetailActivity.class);
                mContext.startActivity(intent);

            }
        });

    }
}
